package com.ezcolour.ticket.dao;

import com.ezcolour.ticket.model.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends JpaRepository<User,Long> {
    @Query("select user from User user where user.account = ?1 ")
    User getByAccount(String account);
}
